package com.xuyoupeng.springframework.beans.factory;

import com.xuyoupeng.springframework.beans.BeansException;

import java.util.Map;

/**
 * @author xuyoupneg
 * @description TODO
 * @date 2024/3/20 20:16
 */
public interface ListableBeanFactory extends BeanFactory{

    /**
     * 按照类型返回Bean实例
     * @param type
     * @return
     * @param <T>
     * @throws BeansException
     */
    <T>Map<String,T> getBeansOfType(Class<T> type) throws BeansException;

    String[] getBeanDefinitionNames();
}
